<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CatPhotoApp</title>
</head>
<body>
    <main>
    <h1>CatPhotoApp</h1>
    <section>
        <!-- 分块 -->
        <h2>Cat Photos </h2>
      <p>Everyone loves <a target="_blank" 
        href="https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg">cute cats</a>
 online!</p>
        <!-- _blank在新的网页中打开 -->
      <a href="https://freecatphotoapp.com"><img src="D:\OneDrive\Desktop\images\relaxing-cat.jpg"
      alt="A cute orange cat lying on its back"></a>
      <p>See more <a href="https://freecatphotoapp.com">cat photos</a> in our gallery</p>
      
      </section>
    <section>
        <h2>Cat Lists</h2>
        <h3>Things cats love:</h3>
        <ul>
            <li>cat nip</li>
            <li>laser pointers</li>
            <li>lasagna</li>
        </ul>

        <figure>
            <!-- 一般用于规定独立媒体元素 -->
            <img src="D:\OneDrive\Desktop\images\lasagna.jpg" 
        alt="A slice of lasagna on a plate.">
        <figcaption>Cats love lasagna.</figcaption>
        <!-- 文字说明 -->
        </figure>

        <h3>Top 3 things cats hate:</h3>
        <ol>
            <li>flea treatment</li>
            <li>thunder </li>
            <li>other cats</li>
        </ol>
        <figure>
            <img src="D:\OneDrive\Desktop\images\cats.jpg"
             alt="Five cats looking around a field">
            <figcaption>Cats <strong>hate</strong> other cats.</figcaption>
        </figure>
    </section>
         <section>
            <h2>Cat Form</h2>
            <form action="https://freecatphotoapp.com/submit-cat-photo">
                <input type="text" name="catphotourl" placeholder="cat photo URL" required></form>
            <button type="submit">submit</button><br>
            <!-- 即使你在文本输入下方添加了按钮，它们也会在页面上彼此相邻。 -->
             <!-- 这是因为 input 和 button 元素都是内联元素?，它们不会出现在新的行上。 -->
            <fieldset>
                <legend>Is your cat an indoor or outdoor cat?</legend>
                <label>indoor<input type="radio" id="indoor"
                 name="indoor-outdoor" value="indoor"></label>
                <label>outdoor<input type="radio" id="outdoor" 
                name="indoor-outdoor" value="outdoor"></label>
            </fieldset>
             <fieldset>
                <!-- 分组 -->
                <legend>What's your cat's personality?</legend>
                <!-- 组标题 -->
                <label for="loving"><input checked id="loving " value="loving" type="checkbox" name="personality">loving</label>
                <!-- lable 扩大点击范围  -->
                <!-- 两个写法 for id 属性值相同 或者 lable 嵌套 -->
                <label for="lazy"><input id="lazy" value="lazy" type="checkbox" name="personality">lazy</label>
                <label for="energetic"><input id="energetic" value="energetic" type="checkbox" name="personality">energetic</label>
             </fieldset>
         </section>
     </main> 
     <footer><p>No Copyright -<a href="https://www.freecodecamp.org"> freeCodeCamp.org</a></p></footer>
</body>
</html>